Fix leak of xsi_schema_loc.
authorrobertl <robertl>
Tue, 10 Feb 2004 14:36:02 +0000 (14:36 +0000)
committerrobertl <robertl>
Tue, 10 Feb 2004 14:36:02 +0000 (14:36 +0000)
gpx.c

diff --git a/gpx.c b/gpx.c
index 48f54123530d1a46ff05c25d3f986c78dbc34e0e..eba8bf77522f8c029d6c5432594d4e71e5d016dc 100644 (file)
--- a/gpx.c
+++ b/gpx.c
@@ -788,6 +788,10 @@ gpx_rd_deinit(void)
 {
        vmem_free(&current_tag);
        vmem_free(&cdatastr);
+       if ( xsi_schema_loc ) {
+               xfree(xsi_schema_loc);
+               xsi_schema_loc = NULL;
+       }
        if ( gpx_email ) {
                xfree(gpx_email);
                gpx_email = NULL;